import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
// 引入 Vant 组件库
import Vant from 'vant'
import 'vant/lib/index.css'

import App from './App.vue'
import router from './router'
import { SocketPlugin } from './utils/socket' // Socket.io 单例插件

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(Vant)
app.use(SocketPlugin) // 注册Socket插件

app.mount('#app')
